Windows OpenFile function
The Windows OpenFile function searches for a matching file in the following directories in the following order:
-
The current directory.
-
The Windows directory, whose path the GetWindowsDirectory function retrieves.
-
The Windows system directory, whose path the GetSystemDirectory function retrieves.
-
The directory containing the executable file for the current task; the GetModuleFileName function obtains the path of this directory.
-
The directories listed in the PATH environment variable.
-
The list of directories mapped in a network.